Skip to content

docs: add public-content rules for RFCs and all public text - #2634

Merged
hidb4ai merged 1 commit into
masterfrom
docs/public-content-rules
Nov 13, 2026
Merged

hidb4ai merged 1 commit into
masterfrom
docs/public-content-rules

Conversation

@AlexStocks

Copy link
Copy Markdown
Contributor

Which issue or RFC does this PR close?

No tracking issue. This is the prevention-rules follow-up to #2633, which removed an inaccessible internal requirement link from RFC 1614. #2633 was merged while this rules commit was still being prepared, so the rules are submitted separately here.

Rationale for this change

RFC 1614 (merged in #1614) carried a header line linking an Ant Group internal Yuque requirements document, with an external customer named in the Chinese link text but omitted from the English one. #2633 removed the line; it did not add any rule that would stop the same class of defect from recurring.

Two gaps made the original defect possible:

  • No public-content rule existed anywhere in CONTRIBUTING.md, the RFC guidelines, or AGENTS.md. Neither contributors nor coding agents had a written instruction about external names, internal links, or the fact that a merged RFC is a permanent public record that outsiders must be able to read and verify.
  • The RFC header contract was implicit. 0000_example.md lists three fields and the README allows one optional Tracking Issue, but nothing said that inventing a header field for a requirement source is out of contract.

RFC #1614's own AI usage statement says it was written with Codex assistance, so a rule that only human contributors read would not cover the path that produced the defect. This PR adds the rule at three levels: the general contribution guide, the coding-agent guide, and the bilingual RFC process guide.

What changes are included in this PR?

Four files, 47 inserted lines, no deletions:

  • CONTRIBUTING.md — new paragraphs under "Write Documentation": merged content is a permanent public record; do not name external customers, users, partners, or their internal projects; do not link to Ant Group / Alibaba internal documents or anything requiring corporate SSO, in particular yuque.antfin.com/... (also covering other intranet domains, private document IDs, and internal chat or ticket links); reference public GitHub issues, PRs, RFCs, or upstream public docs instead; keep docs/en/ and docs/zh/ in sync, including redactions.
  • AGENTS.md — a new "Public Documentation Content" section applying the same constraints to coding agents, with pointers to CONTRIBUTING.md and the RFC READMEs.
  • docs/en/rfcs/README.md and docs/zh/rfcs/README.md — matching new sections ("Public content and references" / "公开内容与引用规范"): the two prohibitions, public-reference alternatives, a rule that RFC header fields come only from 0000_example.md plus the optional Tracking Issue, and a git grep pre-submit check for real internal URLs. Both locales are updated together with identical section order.

No runtime code, API contract, generated file, or existing RFC content changes.

Are there any user-facing changes?

No runtime or API change. Contributors and coding agents now have an explicit written rule for public content, and the RFC process has an explicit header field contract plus a pre-submit check.

How was this change tested?

  • git diff --check — clean; git diff --stat — 4 files, 47 insertions, 0 deletions.
  • The self-check added to the RFC READMEs was executed in the worktree and returns no match. The rule text quotes only the bare domain as a forbidden example, and the regex matches real http(s):// URLs, so the check does not report its own documentation.
  • The four edited files contain neither a complete internal URL nor an external customer name.
  • docs/en/rfcs/README.md and docs/zh/rfcs/README.md section headings compared: 6 sections each, same order, with the new section in the same position.
  • make docs-test was not run: the isolated worktree has no installed website dependencies. The added links are one absolute GitHub URL and one same-directory relative link already used in the same file; no new in-site link target is introduced. Happy to run the full gate if reviewers want it.

AI usage statement

The rule text and this description were prepared with WorkBuddy (Tencent Hunyuan). The diff was reviewed against the rendered output and the self-check command before pushing.

Rule out external customer/user names and Ant Group/Alibaba internal or SSO-only document links in public content, require public references, keep en/zh in sync, and restrict RFC header fields to the template plus the optional Tracking Issue. Applied to CONTRIBUTING.md, AGENTS.md, and both RFC READMEs.
Copilot AI balanced review requested due to automatic review settings November 13, 2026 14:03

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.

An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.

@hidb4ai
hidb4ai merged commit 1325522 into master Nov 13, 2026
1 of 2 checks passed
@hidb4ai hidb4ai added the 1.5.2 v1.5.2 release tracking label Nov 15, 2026
@PsiACE
PsiACE deleted the docs/public-content-rules branch November 16, 2026 12:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.5.2 v1.5.2 release tracking

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants